package com.richest.api.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.richest.api.dao.CommodityTypeMapper;
import com.richest.api.service.ICommodityTypeService;
import com.richest.bean.CommodityTypeBean;

/**
 * 商品类别信息管理服务接口实现
 * @author 杨博
 * @version richest-api 2.0
 *
 */
@Service
public class CommodityTypeServiceImpl implements ICommodityTypeService {

	@Autowired
	private CommodityTypeMapper mapper;

	@Override
	public Integer commodityTypeAdd(CommodityTypeBean bean) {
		return mapper.commodityTypeAdd(bean);
	}

	@Override
	public Integer commodityTypeUpdate(CommodityTypeBean bean) {
		return mapper.commodityTypeUpdate(bean);
	}

	@Override
	public Integer commodityTypeDelete(Long id) {
		return mapper.commodityTypeDelete(id);
	}

	@Override
	public CommodityTypeBean commodityTypeSelectOne(Long id) {
		return mapper.commodityTypeSelectOne(id);
	}

	@Override
	public List<Map<String, Object>> commodityTypeSelectMap(Map<String, Object> params) {
		return mapper.commodityTypeSelectMap(params);
	}
}
